package com.mall.product.domain.entity;

import com.mall.common.annotation.Excel;
import com.mall.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 商品图片对象 pro_product_image
 *
 * @author zhonglin
 * @date 2020-04-29
 */
public class ProProductImage
    extends BaseEntity {

  private static final long serialVersionUID = 1L;

  /**
   * 商品图片 id
   */
  private Long productImageId;

  /**
   * 商品id
   */
  @Excel(name = "商品id")
  private Long productId;

  /**
   * 图片URL
   */
  @Excel(name = "图片URL")
  private String imageUrl;

  /**
   * 状态（0正常 1停用）
   */
  @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
  private String status;

  /**
   * 删除标记（0代表存在 2代表删除）
   */
  private String delFlag;

  public void setProductImageId(Long productImageId) {

    this.productImageId = productImageId;
  }

  public Long getProductImageId() {

    return productImageId;
  }

  public void setProductId(Long productId) {

    this.productId = productId;
  }

  public Long getProductId() {

    return productId;
  }

  public void setImageUrl(String imageUrl) {

    this.imageUrl = imageUrl;
  }

  public String getImageUrl() {

    return imageUrl;
  }

  public void setStatus(String status) {

    this.status = status;
  }

  public String getStatus() {

    return status;
  }

  public void setDelFlag(String delFlag) {

    this.delFlag = delFlag;
  }

  public String getDelFlag() {

    return delFlag;
  }

  @Override
  public String toString() {

    return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("productImageId", getProductImageId())
                                                                    .append("productId", getProductId())
                                                                    .append("imageUrl", getImageUrl())
                                                                    .append("status", getStatus())
                                                                    .append("delFlag", getDelFlag())
                                                                    .append("createBy", getCreateBy())
                                                                    .append("createTime", getCreateTime())
                                                                    .append("updateBy", getUpdateBy())
                                                                    .append("updateTime", getUpdateTime())
                                                                    .append("remark", getRemark())
                                                                    .toString();
  }

}
